package com.tony.mapper.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author tony
 * @date 2020/5/30 17:08
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "s_log")
public class Log implements Serializable {
    public static final String COL_RETURNING = "returning";
    public static final String COL_THROWING = "throwing";
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * protocol
     */
    @TableField(value = "protocol")
    private String protocol;

    /**
     * contentType
     */
    @TableField(value = "content_type")
    private String contentType;

    /**
     * characterEncoding
     */
    @TableField(value = "character_encoding")
    private String characterEncoding;

    /**
     * requestedSessionId
     */
    @TableField(value = "requested_session_id")
    private String requestedSessionId;

    /**
     * scheme
     */
    @TableField(value = "scheme")
    private String scheme;

    /**
     * method
     */
    @TableField(value = "method")
    private String method;

    /**
     * ip
     */
    @TableField(value = "ip")
    private String ip;

    /**
     * url
     */
    @TableField(value = "url")
    private String url;

    /**
     * queryString
     */
    @TableField(value = "query_string")
    private String queryString;

    /**
     * methodName
     */
    @TableField(value = "method_name")
    private String methodName;

    /**
     * joinPointArgs
     */
    @TableField(value = "join_point_args")
    private String joinPointArgs;

    /**
     * requestArgs
     */
    @TableField(value = "request_args")
    private String requestArgs;

    /**
     * result
     */
    @TableField(value = "result")
    private String result;

    /**
     * error
     */
    @TableField(value = "error")
    private String error;

    /**
     * createTime
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * token
     */
    @TableField(value = "token")
    private String token;

    /**
     * userInfo
     */
    @TableField(value = "user_info")
    private String userInfo;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_PROTOCOL = "protocol";

    public static final String COL_CONTENT_TYPE = "content_type";

    public static final String COL_CHARACTER_ENCODING = "character_encoding";

    public static final String COL_REQUESTED_SESSION_ID = "requested_session_id";

    public static final String COL_SCHEME = "scheme";

    public static final String COL_METHOD = "method";

    public static final String COL_IP = "ip";

    public static final String COL_URL = "url";

    public static final String COL_QUERY_STRING = "query_string";

    public static final String COL_METHOD_NAME = "method_name";

    public static final String COL_JOIN_POINT_ARGS = "join_point_args";

    public static final String COL_REQUEST_ARGS = "request_args";

    public static final String COL_RESULT = "result";

    public static final String COL_ERROR = "error";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_TOKEN = "token";

    public static final String COL_USER_INFO = "user_info";
}